#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int gcd(int m, int n) {
    if (n == 0) {
        return m;
    }
    else {
        return gcd(n, m % n);
    }
}

int main() {
    int m, n;
    printf("Enter two integers: ");
    scanf("%d %d", &m, &n);
    int result = gcd(m, n);
    printf("The GCD of %d and %d is %d\n", m, n, result);
    return 0;
}

